package com.knowif.enumInfo;

public enum MeetTypeEnum {
	
	VOICE("语音通话"),
	
	MEETOFLING("线下见面");
	
	private String type;
	

	private MeetTypeEnum(String type) {
		this.type = type;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	
	/**
	 * @author: xingyao 
	 * @Description:  是否是语音聊天
	 * @param type
	 * @return
	 */
	public static boolean isVoice(String type){
		if(VOICE.getType().equals(type)){
			return true;
		}else{
			return false;
		}
	}
	
	/**
	 * @author: xingyao 
	 * @Description:  判断是否是线下见面
	 * @param type
	 * @return
	 */
	public static boolean isMeetOfling(String type){
		if(MEETOFLING.getType().equals(type)){
			return true;
		}else{
			return false;
		}
	}

}
